
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css" />
<title>Untitled Document</title>
</head>

<body background="images/body_bg.png">
<table width="800" border="0" align="center">
  <tr>
    <td height="150" colspan="2" bgcolor="#FF0000"><img src="images/banner.png" width="797" /></td>
  </tr>
  <tr>
    <td width="239" valign="top"  bgcolor="#ffe6d6">
    	<table width="100%" border="0" id="doimau">
              <tr  bgcolor="#f36909">
                <td align="center" style="color:#fff; padding-top:5px; border-bottom:dotted 1px;">QUẢN LÝ TIN TỨC</td>
              </tr> 
              <tr>
                <td align="center" style=" padding-top:5px; border-bottom:dotted 1px;"><a href="QuanLy.do?Action=View" style="text-decoration:none; color:#a24c41; ">Sự Kiện</a></td>
              </tr>
              <tr>
                <td align="center" style="color:#a24c41; padding-top:5px; border-bottom:dotted 1px;"><a href="QuanLyKhuyenMai.do?Action=View" style="text-decoration:none; color:#a24c41">Tin Khuyến Mãi</a></td>
              </tr>
              <tr>
                <td align="center" style="color:#a24c41; padding-top:5px; border-bottom:dotted 1px;"><a href="QuanLyBaoChiViet.do?Action=View" style="text-decoration:none; color:#a24c41">Báo Chí Viết</a></td>
              </tr>     
    	</table>
    </td>
    <td width="551" height="500" valign="top" bgcolor="#FFFFFF">
        <c:choose>
        <c:when test="${them} == 1">
             <form id="form1" name="form1" method="post" action="ThemKhuyenMai.do?Action=Nap" enctype="multipart/form-data">
                 <% request.setCharacterEncoding("UTF-8"); %>
            <table width="100%" border="1">
              <tr>
                <td>Tiêu Đề</td>
                <td><label for="textfield"></label>
                  <input type="text" name="txtTieuDe" id="textfield" /></td>
              </tr>
              <tr>
                <td>Nội Dung</td>
                <td><label for="textfield2"></label>
                  <input type="text" name="txtNoiDung" id="textfield2" /></td>
              </tr>
              <tr>
                <td>Nội Dung Chi Tiết</td>
                <td><label for="textarea"></label>
                  <textarea name="trNoiDungChiTiet" id="textarea" cols="45" rows="5"></textarea></td>
              </tr>
              <tr>
                <td>Hình Ảnh</td>
                <td><input name="namecb" type="file"/></td>
              </tr>
              <tr>
                <td>Ngày Bắt Đầu</td>
                <td>
                    <select name="BirthDay" style="visibility: visible;">
                            <c:forEach var="i" begin="1" end="31">
                                <option value="${i}">${i}</option>
                            </c:forEach>
                        </select>
                        <select name="BirthMonth" style="visibility: visible;">
                            <c:forEach var="i" begin="1" end="12">
                                <option value="${i}">${i}</option>
                            </c:forEach>
                        </select>
                        <select name="BirthYear" style="visibility: visible;">
                            <c:forEach var="i" begin="1900" end="1998">
                                <option value="${i}">${i}</option>
                            </c:forEach>
                        </select>
                </td>
              </tr>
                <tr>
                <td>Ngày Kết Thúc</td>
                <td>
                    <select name="BirthDay" style="visibility: visible;">
                            <c:forEach var="i" begin="1" end="31">
                                <option value="${i}">${i}</option>
                            </c:forEach>
                        </select>
                        <select name="BirthMonth" style="visibility: visible;">
                            <c:forEach var="i" begin="1" end="12">
                                <option value="${i}">${i}</option>
                            </c:forEach>
                        </select>
                        <select name="BirthYear" style="visibility: visible;">
                            <c:forEach var="i" begin="1900" end="1998">
                                <option value="${i}">${i}</option>
                            </c:forEach>
                        </select>
                </td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td><input type="submit" name="button" id="button" value="Lưu" /></td>
              </tr>
                
            </table>
        </form>
        </c:when>
        <c:otherwise>
            <form id="form1" name="form1" method="post" action="ThemKhuyenMai.do?Action=Nap" enctype="multipart/form-data">
            <table width="100%" border="1">
              <tr>
                <td>Tiêu Đề</td>
                <td><label for="textfield"></label>
                  <input type="text" name="txtTieuDe" id="textfield" /></td>
              </tr>
              <tr>
                <td>Nội Dung</td>
                <td><label for="textfield2"></label>
                  <input type="text" name="txtNoiDung" id="textfield2" /></td>
              </tr>
              <tr>
                <td>Nội Dung Chi Tiết</td>
                <td><label for="textarea"></label>
                  <textarea name="trNoiDungChiTiet" id="textarea" cols="45" rows="5"></textarea></td>
              </tr>
              <tr>
                <td>Hình Ảnh</td>
                <td><input name="namecb" type="file"/></td>
              </tr>
              <tr>
                <td>Ngày Bắt Đầu</td>
                <td>
                    <select name="BirthDay" style="visibility: visible;">
                            <c:forEach var="i" begin="1" end="31">
                                <option value="${i}">${i}</option>
                            </c:forEach>
                        </select>
                        <select name="BirthMonth" style="visibility: visible;">
                            <c:forEach var="i" begin="1" end="12">
                                <option value="${i}">${i}</option>
                            </c:forEach>
                        </select>
                        <select name="BirthYear" style="visibility: visible;">
                            <c:forEach var="i" begin="1900" end="1998">
                                <option value="${i}">${i}</option>
                            </c:forEach>
                        </select>
                </td>
              </tr>
              <tr>
                <td>Ngày Kết Thúc</td>
                <td>
                    <select name="BirthDay" style="visibility: visible;">
                            <c:forEach var="i" begin="1" end="31">
                                <option value="${i}">${i}</option>
                            </c:forEach>
                        </select>
                        <select name="BirthMonth" style="visibility: visible;">
                            <c:forEach var="i" begin="1" end="12">
                                <option value="${i}">${i}</option>
                            </c:forEach>
                        </select>
                        <select name="BirthYear" style="visibility: visible;">
                            <c:forEach var="i" begin="1900" end="1998">
                                <option value="${i}">${i}</option>
                            </c:forEach>
                        </select>
                </td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td><input type="submit" name="button" id="button" value="Lưu" /></td>
              </tr>
            </table>
        </form>
        </c:otherwise>
        </c:choose>
      
    </td>
       
  </tr>
    
  <tr>
    <td colspan="2" align="center" bgcolor="#ffc59e" style="color:#a24c41">Ví điện tử</td>
  </tr>
</table>
</body>
</html>

